package com.ushine.design.design.c_behavioral_pattern.b_command.b_example;

/**
 * 客户端测试类
 *
 * @author yls
 */
public class Client {
    public static void main(String[] args) {
        FunctionButton button = new FunctionButton();
        Command command = new ExitCommand();
        button.setCommand(command);
        button.click();

        command = new HelpCommand();
        button.setCommand(command);
        button.click();
    }
}
